package tween
{
	import com.greensock.TweenMax;
	import com.greensock.easing.*;
	
	import flash.display.Sprite;
	
	import util.Arrow;
	import util.Ball;
	
	public class ShotTest extends Sprite
	{
		public function ShotTest()
		{
			init();
		}
		
		public function init():void {
//			var b1:Ball = new Ball(3);
//			var b2:Ball = new Ball(3);
//			var b3:Ball = new Ball(3);
			
			var b1:Arrow = new Arrow();
			var b2:Arrow = new Arrow();
			var b3:Arrow = new Arrow();
			this.addChild(b1);
			this.addChild(b2);
			this.addChild(b3);
			b1.x = 0;b2.x = 0;b3.x=300;
			b1.y = 200,b2.y = 200,b3.y = 200;
			
			TweenMax.to(b2,1.5,{x:300,y:200,bezier:[{x:150, y:0}],ease:Expo.easeIn});
		}
	}
}